package com.ceair.flight.refund.location.dt.enums;
/**
 * 订单范围枚举
 * @author rujun
 *
 */
public enum OrderScopeEnum {
	
	INTERNATIONAL("I","国际"),
	DOMESTIC("D","国内");
	
	/** 简码 */
    private final String code;

    /** 描述 */
    private final String description;
    
    private OrderScopeEnum(String code, String description){
    	this.code = code;
        this.description = description;
    }
    
    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * 通过枚举<code>code</code>获得枚举。
     *
     * @param code  简码
     * @return      枚举
     */
    public static com.ceair.flight.refund.location.dt.enums.OrderScopeEnum getByCode(String code) {
        for (com.ceair.flight.refund.location.dt.enums.OrderScopeEnum status : values()) {
            if (status.getCode().equalsIgnoreCase(code)) {
                return status;
            }
        }
        return null;
    }
}
